<%@ page import="java.util.List"%>
<%@ page import="com.rsscollector.model.vo.RssContent"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib prefix="app" uri="/WEB-INF/tlds/app.tld" %>
<%
    List result = (List) request.getAttribute("result");
    String term = (String) request.getAttribute("term");
%>
  <td with="420">
<%if (result.size() == 0) {%>
      Khong tim thay ket qua voi tu khoa "<%=term%>"
<%} else {%>
    <table width="100%" border="0" cellspacing="2" cellpadding="0">
    <tr><td height="20" colspan="2">Kết quả search với từ khoá "<%=term%>"</td></tr>
    <tr><td height="20" colspan="2">&nbsp;</td></tr>
        <%
            for (java.lang.Object aResult: result) {
                RssContent content = (RssContent) aResult;
        %>
            <TR>
              <TD colspan="2"><a href='<%=content.getLink()%>'><b><%=content.getTitle()%></b> - <%=content.getRssSource().getRssProvider().getName()%></a></TD></TR>
            <TR>
              <TD  colspan="2" class=LeadFront>
                <%if (content.getImageLink() != null) {%><TABLE cellSpacing=0 cellPadding=0 width=82 align=left border=0>
                  <TBODY>
                  <TR>
                    <TD class=LoadBox><a href="<%=content.getLink()%>"><%=content.getImageLink()%></a></TD>
                  </TR></TBODY></TABLE>
                 <%}%><%=content.getDescriptionValue()%></TD>
                  </TR>
            <TR>
              <TD vAlign=bottom align=left></TD>
              <TD vAlign=bottom align=right><a href="<%=content.getLink()%>"><IMG align="right" src="<%=request.getContextPath()%>/images/readMore.gif" border=0 /></a></TD>
            </TR>
            <tr><td colspan="2">&nbsp;</td></tr>
        <%}%>
    </table>
<%}%>
  </td>
